﻿@model RTracker.Models.Organization.GOrganization
@{

    RTracker.Models.Common.CUserSession user = (RTracker.Models.Common.CUserSession)HttpContext.Current.Session["CurrentUserSession"];
}
@if (user.OrganizationId == 1)
{
    <script type="text/javascript">
        $(".org-dropdown-cls").live("change", function () {
            //alert($(this).val());
            if ($(this).val() != "1") {
                $(".org-list-element-cls").css("visibility", "collapse");
                $(".org-list-element-cls").css("height", "0px");
            }
            else {
                $(".org-list-element-cls").css("visibility", "visible");
                $(".org-list-element-cls").css("height", "41.11px");
            }
        });
    </script>
}
@Html.HiddenFor(model => user.OrganizationId, new { id = "CurrentUserOrganizationId-id" });
<script>
    //alert($("#CurrentUserOrganizationId-id").val());
    if ($("#CurrentUserOrganizationId-id").val() > 0) {
        nCurrentUserOrganizationId = $("#CurrentUserOrganizationId-id").val();
    }
    else {
        nCurrentUserOrganizationId = 1;
    }
    nGbOrgId = nCurrentUserOrganizationId;
    //alert(nCurrentUserOrganizationId);

</script>
<ul class="page-sidebar-menu" data-auto-scroll="true" data-slide-speed="200">
    <li class="sidebar-toggler-wrapper">
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
        <div class="sidebar-toggler hidden-phone">
        </div>
        <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
    </li>
    <li class="sidebar-search-wrapper">
        <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
        <form class="sidebar-search" action="extra_search.html" method="POST">
            <div class="form-container">
                <div class="input-box">
                    <a href="javascript:;" class="remove">
                    </a>
                    <input type="text" placeholder="Search..." />
                    <input type="button" class="submit" value=" " />
                </div>
            </div>
        </form>
        <!-- END RESPONSIVE QUICK SEARCH FORM -->
    </li>
    @if (user.OrganizationId == 1)
    {
        <li class="sidebar_option">
            <a href="javascript:void();">
                <i class="fa fa-bank mnt_opt"></i>
                <select class="org-dropdown-cls">
                    @foreach (var item in Model.LstCOrganization)
                    {
                        <option value="@item.OrganizationId">@item.City - @item.OrganizationName</option>
                    }
                </select>
            </a>
        </li>
    }
    @*<li id="Dashboard" class="start active sidebar-click-cls">
            <a href="javascript:void();">
                <i class="fa fa-home"></i>
                <span class="title">Dashboard</span>
                <span class="selected">
                </span>
            </a>
        </li>*@
    <li id="User" class=" sidebar-click-cls">
        <a href="javascript:;">
            <i class="fa fa-user"></i>
            <span class="title">User</span>
            <span class="arrow">
            </span>
        </a>
    </li>
    <li id="Recruitment/Client" class="">
        <a href="javascript:;">
            <i class="fa fa-users"></i>
            <span class="title">Client</span>
            <span class="arrow ">
            </span>
        </a>
    </li>
    @if (user.OrganizationId == 1)
    {
        <li id="Organization" class="org-list-element-cls sidebar-click-cls">
            <a href="javascript:void();">
                <i class="fa fa-bank"></i>
                <span class="title">Organisation</span>
                @*<span class="selected">
                    </span>*@
                <span class="arrow ">
                </span>
            </a>
        </li>
    }
    @*<li id="Setup" class=" sidebar-click-cls">
            <a href="javascript:;">
                <i class="fa fa-wrench"></i>
                <span class="title">Setup</span>
                <span class="arrow ">
                </span>
            </a>
        </li>*@
    <li id="Recruitment/Candidate" class=" sidebar-click-cls">
        <a href="javascript:;">
            <i class="fa  fa-child"></i>
            <span class="title">Candidate</span>
            <span class="arrow ">
            </span>
        </a>
    </li>
    <li id="Recruitment/Vacancy" class=" sidebar-click-cls">
        <a href="javascript:;">
            <i class="fa fa-puzzle-piece"></i>
            <span class="title">Vacancy</span>
            <span class="arrow ">
            </span>
        </a>
        <ul class="sub-menu">
            <li>
                <a id="Recruitment/VacancyExpirence" href="javascript:void();" class=" sidebar-click-cls">
                    Vacancy Expirence
                </a>
            </li>
            <li>
                <a id="Recruitment/VacancySalary" href="javascript:void();" class=" sidebar-click-cls">
                    Vacancy Salary
                </a>
            </li>
            <li>
                <a id="Recruitment/VacancyStatus" href="javascript:void();" class=" sidebar-click-cls">
                    Vacancy Status
                </a>
            </li>
        </ul>
    </li>
    <li id="Recruitment/Drive" class="">
        <a href="javascript:;">
            <i class="fa fa-inbox"></i>
            <span class="title">Drive</span>
            <span class="arrow ">
            </span>
        </a>
    </li>
    <li id="Recruitment/Calling" class="">
        <a href="javascript:;">
            <i class="fa fa-fax"></i>
            <span class="title">Calling</span>
            <span class="arrow ">
            </span>
        </a>
    </li>
    <li id="Recruitment/Rounds" class="">
        <a href="javascript:;">
            <i class="fa  fa-envelope-square"></i>
            <span class="title">Rounds</span>
            <span class="arrow ">
            </span>
        </a>
    </li>
</ul>
